public class LoggerFactory {
    public Logger getLogger(String type) {
        if (type == null || type.isBlank()) {
            return null;
        }
        if (type.equalsIgnoreCase("console")) {
            return new ConsoleLogger();
        } else if (type.equalsIgnoreCase("file")) {
            return new FileLogger();
        }
        return null;
    }
}
